package com.laoma.ordercenter.feignclilent.fallback;

import com.laoma.ordercenter.dto.response.UserInfoResponse;
import com.laoma.ordercenter.feignclilent.UserCenterFeignClient;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

@Component
public class UserCenterFeignClientFallback implements UserCenterFeignClient {
    @Override
    public UserInfoResponse findUserByWxid(String wxid) {
        //实现降级返回
        return UserInfoResponse.builder()
                .wxId("111")
                .wxNickname("默认用户")
                .build();
    }
}
